package com.cy.stone.system.infrastructure.database.entity;

import com.cy.stone.common.base.BaseEntity;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 用户角色关联表 实体类。
 *
 * @author Wings
 * @since 2023-12-07
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户角色关联表")
@Table(value = "ST_USER_ROLE")
public class UserRoleEntity extends BaseEntity {

    /**
     * 用户ID【对应USER表的ID】
     */
    @Schema(description = "用户ID【对应USER表的ID】")
    private String userId;

    /**
     * 用户名【对应USER表的USER_NAME】
     */
    @Schema(description = "用户名【对应USER表的USER_NAME】")
    private String userName;

    /**
     * 角色ID【对应ROLE表的ID】
     */
    @Schema(description = "角色ID【对应ROLE表的ID】")
    private String roleId;

    /**
     * 角色编码
     */
    @Schema(description = "角色编码")
    private String roleCode;

}
